/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reportRouter = {
  path: '/report',
  component: Layout,
  name: '统计报表',
  meta: {
    title: '统计报表',
    subtitle:'统计',
    icon: 'menu_report'
  },
  children: [
    {
      path: '/inStockCountReport/list',
      component: () => import('@/views/inStockCountReport/list'),
      name: 'inStockCountReport-list',
      meta: { title: '进货统计报表',subtitle:'进货', icon: 'menu_report',permissions:['inStockCountReport.query']}
    },
    {
      path: '/warehouseSaleReport/list',
      component: () => import('@/views/warehouseSaleReport/list'),
      name: 'warehouseSaleReport-list',
      meta: { title: '销售统计报表',subtitle:'销售', icon: 'menu_report',permissions:['warehouseSaleReport.query']}
    },
    {
      path: '/orderReport/list',
      component: () => import('@/views/orderReport/list'),
      name: 'orderReport-list',
      meta: { title: '订单统计报表',subtitle:'订单', icon: 'menu_report',permissions:['orderReport.query']}
    },
    {
      path: '/emptyBarrelReport/list',
      component: () => import('@/views/emptyBarrelReport/list'),
      name: 'emptyBarrelReport-list',
      meta: { title: '空桶统计报表',subtitle:'订单', icon: 'menu_report',permissions:['emptyBarrelReport.query']}
    },
    {
      path: '/receiveReport/list',
      component: () => import('@/views/receiveReport/list'),
      name: 'receiveReport-list',
      meta: { title: '收款统计报表',subtitle:'收款', icon: 'menu_report',permissions:['receiveReport.query']}
    },
    {
      path: '/supplyCountReport/list',
      component: () => import('@/views/supplyCountReport/list'),
      name: 'supplyCountReport-list',
      meta: { title: '送货统计报表',subtitle:'送货', icon: 'menu_report',permissions:['supplyCountReport.query']}
    },
    {
      path: '/waterTictetReport/list',
      component: () => import('@/views/waterTictetReport/list'),
      name: 'waterTictetReport-list',
      meta: { title: '水票统计报表',subtitle:'水票', icon: 'menu_report',permissions:['waterTictetReport.query']}
    },
    {
      path: '/virtualPledgeReport/list',
      component: () => import('@/views/virtualPledgeReport/list'),
      name: 'virtualPledgeReport-list',
      meta: { title: '押金统计报表',subtitle:'押金', icon: 'menu_report',permissions:['virtualPledgeReport.query']}
    },
    {
      path: '/allocateReport/list',
      component: () => import('@/views/allocateReport/list'),
      name: 'allocateReport-list',
      meta: { title: '调拨统计报表',subtitle:'调拨', icon: 'menu_report',permissions:['allocateReport.query']}
    },
    {
      path: '/checkCountReport/list',
      component: () => import('@/views/checkCountReport/list'),
      name: 'allocateReport-list',
      meta: { title: '盘点统计报表',subtitle:'盘点', icon: 'menu_report',permissions:['checkCountReport.query']}
    },
    {
      path: '/inSaleCountReport/list',
      component: () => import('@/views/inSaleCountReport/list'),
      name: 'inSaleCountReport-list',
      meta: { title: '进销存统计表',subtitle:'盘点', icon: 'menu_report',permissions:['inStockCountReport.query']}
    },
    {
      path: '/saleFlowCountReport/list',
      component: () => import('@/views/saleFlowReport/list'),
      name: 'saleFlowCountReport-list',
      meta: { title: '商品销售流水',subtitle:'流水', icon: 'menu_report',permissions:['saleFlowCountReport.query']},
      hidden: true
    },
    {
      path: '/deliverymanReport/list',
      component: () => import('@/views/deliverymanReport/list'),
      name: 'deliverymanReport-list',
      meta: { title: '送货汇总表',subtitle:'送货员', icon: 'menu_report',permissions:['saleFlowCountReport.query']},

    },



    // {
    //   path: '/report/list',
    //   component: () => import('@/views/report/list'),
    //   name: 'report-list',
    //   meta: { title: '其他分析报表',subtitle:'统计', icon: 'menu_report',permissions:['report.query']}
    // },
    {
      path: '/orderReport/detailslist',
      component: () => import('@/views/orderReport/detailslist'),
      name: 'orderReport-detailslist',
      meta: { title: '订单统计报表明细',subtitle:'详情', icon: 'menu_report',},
      hidden: true
    },

    {
      path: '/allocateReport/allocateReportdetails',
      component: () => import('@/views/allocateReport/allocateReportdetails'),
      name: 'allocateReport-allocateReportdetails',
      meta: { title: '调拨统计报明细',subtitle:'详情', icon: 'menu_report',},
      hidden: true
    },
    {
      path: '/checkCountReport/checkCountReportdetails',
      component: () => import('@/views/checkCountReport/checkCountReportdetails'),
      name: 'checkCountReport-checkCountReportdetails',
      meta: { title: '盘点统计明细',subtitle:'详情', icon: 'menu_report',},
      hidden: true
    },
    {
      path: '/inStockCountReport/inStockCountReportdetails',
      component: () => import('@/views/inStockCountReport/inStockCountReportdetails'),
      name: 'inStockCountReport-inStockCountReportdetails',
      meta: { title: '进货统计明细',subtitle:'详情', icon: 'menu_report',},
      hidden: true
    },

    {
      path: '/supplyCountReport/detailslist',
      component: () => import('@/views/supplyCountReport/detailslist'),
      name: 'supplyCountReport-detailslist',
      meta: { title: '送货统计明细',subtitle:'详情', icon: 'menu_report',},
      hidden: true
    },
  ]
}
export default reportRouter
